<include file="__THEME__/header" />
<link rel="stylesheet" href="__APP__/poster.css" type="text/css" media="screen" charset="utf-8" />
<style type="text/css">
.sort dd {
  margin: 5px;
}
  .sort dd a {
  padding: 0 1px;
  line-height: 0px;
  height: 24px;
}
.sort dd a.on {
display: inline;
float: none;
}

.mainbox_appR {
   padding: 10px;
   width: 250px;
}
</style>


<div class="content_holder">
<div class="content no_bg boxShadow"><!-- 内容 begin  -->
<include file="../Public/_mainNav" />
  <div class="main no_l"><!-- 画布 begin  -->
    <div class="mainbox clearfix">
      <div class="mainbox_appR">
        <div class="right_box box_create mb20"><a href="{:U('poster/index/addPosterSort')}" class="btn-create">发布信息</a></div>
		<include file="../Public/_isHotList" />
      </div>
      <div class="mainbox_appC">
		<div class="tab-menu clearfix" style="height: 32px;"><!-- 切换标签 begin  -->
			<ul>
          <li <php>echo ($_GET['order']=='')?'class="current"':NULL;</php>><a href="{:U('//')}" ><span>最新{$ts['app']['app_alias']}</span></a></li>
          <!-- <li <php>echo ($_GET['order']=='recommend')?'class="current"':NULL;</php>><a href="{:U('//',array('order'=>'recommend'))}" ><span>推荐{$ts['app']['app_alias']}</span></a></li> -->
          <li <php>echo ($_GET['order']=='following')?'class="current"':NULL;</php>><a href="{:U('//',array('order'=>'following'))}" ><span>我关注的人的{$ts['app']['app_alias']}</span></a></li>
      </ul>
		</div><!-- 切换标签 end  -->
     

<script  type="text/javascript" src="__APP__/poster_follow.js" ></script>   
    <div class="boxL poster_boxL"><!-- 招贴列表begin  -->
    	<div class="sort mt10">
        <dl>
      	  <volist name="posterType" id="vo">
    		    <dd>

            <a href="{:U('//',array('order'=>$_GET['order'],'pid'=>$vo['id'],'title'=>$searchkey))}" <php>if($vo['id'] == $_GET['pid']) echo "class='on'";</php>>{$vo.name}</a>

          <php>if(!isset($poster_type_follow[$vo['id']])):</php>
            <a href="javascript:;" onclick="poster.upFollowStatus('{$GLOBALS['ts']['mid']}', '{$vo.id}', 'add',0, this)" class="btn-cancel">
            <span><i class="ico-add-black"></i>关注</span></a>
            
        <php>else:</php>
            <a href="javascript:;" onclick="poster.upFollowStatus('{$GLOBALS['ts']['mid']}', '{$vo.id}', 'del',0, this)" class="btn-att-white">
            <span><i class="ico-already"></i>已关注</span></a>
          <php>endif</php>


            </dd>
    		  </volist>
        </dl>
	   </div>
         
    <php>if(!empty($type)){</php>
        <div class="sort mb10" style="background-color:#fff; border-top:0;">
          <dl>
            <volist name="type" id="vo">
	            <dd>


              <a href="{:U('//',array('order'=>$_GET['order'],'pid'=>$_GET['pid'],'stid'=>$vo['id'],'title'=>$searchkey))}" <php>if($vo['id'] == $_GET['stid']) echo "class='on'";</php>>{$vo.name}<!-- ({$vo.count}) --></a>

            <php>if(!isset($poster_smalltype_follow[$vo['id']])):</php>
              <a href="javascript:;" onclick="poster.upFollowStatus('{$GLOBALS['ts']['mid']}', '{$vo.id}', 'add',1, this)" class="btn-cancel">
             <span><i class="ico-add-black"></i>关注</span></a>
              
          <php>else:</php>
              <a href="javascript:;" onclick="poster.upFollowStatus('{$GLOBALS['ts']['mid']}', '{$vo.id}', 'del',1, this)" class="btn-att-white">
              <span>
              <i class="ico-already"></i>已关注</span></a>
            <php>endif</php>



              </dd>
	          </volist>
          </dl>
        </div>
    <php>}</php>
  		  <ul class="search">
	  		<volist name="data" id="vo">
	       	  <li class="lineD_btm">
              <div class="left">
                 <php>if(!empty($vo['cover'])){</php>
                   <img src="{$vo['cover']}" width="100" height="100"/>
                 <php>}else{</php>
                   <img src="__APP__/images/list_zw.gif" width="100" height="100" />
                 <php>}</php>
              </div>
	       		<div class="content_li" >
	   			  <h3><a href="{:U('//posterDetail',array('id'=>$vo['id']))}">{$vo.title}</a><if condition="$vo['type']"><span class="cGray2">[{$vo.type}]</span></if></h3>
            <p><space uid="vo.uid">{uname}</space></p>
            <p class="f9">发布时间：{$vo.cTime|friendlyDate} </p>
	          <p>{$vo.content}</p>	               
	       		</div>
            <div style="width: 90px;position:absolute;top:10px;right:0;">
              <php>if($vo['deadline']&&$vo['deadline']<=time()){</php>
              <img src="__APP__/images/icon_ygq1.gif" width="63" height="36" />
              <php>}</php>
            </div>
	          <div class="c"></div>
	       	  </li>
       	  </volist>
        </ul>
        <div id="Pagination" class="page">{$html}</div>
      </div>
      </div>
    </div>
  </div>
  <div class="c"></div>
</div>
</div>
<!-- 内容 end -->
<include file="__THEME__/public_footer" />